package com.wgo.bpot.common.transport.exception.db;

/**
 * Thrown when trying to do an action that depends on
 * a non-existing resource.
 * 
 * @author peide3
 */
public class MissingResourceException extends DatabaseException {

    private static final long serialVersionUID = 1L;

    private static final String META = "Requested resource does not exist";
    /**
	 * Constructs a new exception with the specified detail message.
	 * 
	 * @param message the detail message.
	 */
	public MissingResourceException(String message) {
		super(META + ": " + message);
	}

    /**
     * @param e
     */
    public MissingResourceException(Throwable e) {
        super(META, e);
    }

    public MissingResourceException(String message, Throwable e) {
        super(META + ": " + message, e);
    }
}
